package com.yunji.ylexpiration.service;

import com.yunji.ylexpiration.entity.FurnShoppinTrolley;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface FurnShoppinTrolleyService {
   //添加购物车
    int shoppinadd(FurnShoppinTrolley furnShoppinTrolley);

    //数量加一
   int quantityadd(Integer shopid,FurnShoppinTrolley furnShoppinTrolley);
   //数量减一
   int quantitysubtract(Integer shopid,FurnShoppinTrolley furnShoppinTrolley);

   //根据id查询
    FurnShoppinTrolley selfurnshoopingtrolleyByid(Integer shoppid);
    //根据id删除
    int delfurnshoopingtrolleyByid(Integer id);
    //根据用户查询
    List<FurnShoppinTrolley> selfurnshoopingtrolleyByuserid(Integer userid);
    //购物车id查询商品信息
    FurnShoppinTrolley selfurnshoopingtrolleyByshooid(Integer shooid);

    FurnShoppinTrolley selfurnshoopingtrolleyByshooidbyuid(Integer id, Integer userid,Integer colour);
    //总数
    int furnshoppcount(Integer userid);
}